package com.groupnections.server.database.entities;

import java.util.ArrayList;
import java.util.List;

import com.googlecode.objectify.Key;
import com.groupnections.shared.Entity;

public class EntitiesData {

	public static Entity loadAllineWatkins() {

		Entity userEntity = new Entity();
		userEntity.setEntityID("AllineO");
		userEntity.setEntityName("Alline Watkins");
		userEntity.setEntityType(Entity.USER_TYPE);

		List<Key<Entity>> arrayEntities = new ArrayList<Key<Entity>>();

		arrayEntities.add(new Key<Entity>(Entity.class, "LiveSource"));
		arrayEntities.add(new Key<Entity>(Entity.class, "TicTacToe4j"));
		arrayEntities.add(new Key<Entity>(Entity.class, "AmazonTravelLog"));

		userEntity.setEntitiesRelated(arrayEntities);

		return userEntity;
	}

	public static Entity loadAaronVonderHaar() {

		Entity userEntity = new Entity();
		userEntity.setEntityID("avh4");
		userEntity.setEntityName("Aaron VonderHaar");
		userEntity.setEntityType(Entity.USER_TYPE);

		List<Key<Entity>> arrayEntities = new ArrayList<Key<Entity>>();

		arrayEntities.add(new Key<Entity>(Entity.class, "LiveSource"));
		arrayEntities.add(new Key<Entity>(Entity.class, "AmazonTravelLog"));
		arrayEntities.add(new Key<Entity>(Entity.class, "AllineO"));

		userEntity.setEntitiesRelated(arrayEntities);

		return userEntity;
	}

	public static Entity loadPhelan() {

		Entity userEntity = new Entity();
		userEntity.setEntityID("imagium");
		userEntity.setEntityName("Phelan Riessen");
		userEntity.setEntityType(Entity.USER_TYPE);

		List<Key<Entity>> arrayEntities = new ArrayList<Key<Entity>>();

		arrayEntities.add(new Key<Entity>(Entity.class, "Groupnections"));
		arrayEntities.add(new Key<Entity>(Entity.class, "AllineO"));

		userEntity.setEntitiesRelated(arrayEntities);

		return userEntity;
	}

	public static Entity loadLiveSource() {

		Entity projectEntity = new Entity();
		projectEntity.setEntityID("LiveSource");
		projectEntity.setEntityName("LiveSource");
		projectEntity.setEntityType(Entity.PROJECT_TYPE);

		List<Key<Entity>> arrayEntities = new ArrayList<Key<Entity>>();

		arrayEntities.add(new Key<Entity>(Entity.class, "AllineO"));

		projectEntity.setEntitiesRelated(arrayEntities);

		return projectEntity;
	}

	public static Entity loadProjectTicTacToe() {

		Entity projectEntity = new Entity();
		projectEntity.setEntityID("TicTacToe4j");
		projectEntity.setEntityName("Tic Tac Toe");
		projectEntity.setEntityType(Entity.PROJECT_TYPE);

		return projectEntity;
	}

	public static Entity loadProjectTravelLog() {

		Entity projectEntity = new Entity();
		projectEntity.setEntityID("AmazonTravelLog");
		projectEntity.setEntityName("TravelLog");
		projectEntity.setEntityType(Entity.PROJECT_TYPE);

		return projectEntity;
	}

	public static Entity loadProjectGroupnection() {

		Entity projectEntity = new Entity();
		projectEntity.setEntityID("Groupnections");
		projectEntity.setEntityName("Groupnections");
		projectEntity.setEntityType(Entity.PROJECT_TYPE);

		return projectEntity;
	}
}
